@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");

:root {
    --header-height: 3rem;
    --nav-width: 220px;
    --first-color: #002B49;
    --first-color-light: #AFA5D9;
    --white-color: #F7F6FB;
    --body-font: 'Nunito', sans-serif;
    --normal-font-size: 1rem;
    --z-fixed: 100
}

*,::before,::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: #f8f9fa;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.sidebar {
    width: 250px;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #eee;
    background: #0d6efd;
    color: white;
}

.sidebar-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-header small {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.nav-menu {
    padding: 1rem 0;
}

.menu-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    margin-top: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1.5rem;
    color: #495057;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #0d6efd;
}

.nav-link.active {
    background: #e7f1ff;
    color: #0d6efd;
    border-right: 3px solid #0d6efd;
}

.content {
    flex: 1;
    margin-left: 250px;
    padding: 1rem;
    background: #f8f9fa;
    min-height: 100vh;
}

.content-header {
    background: #fff;
    padding: 1rem;
    margin: -1rem -1rem 1rem -1rem;
    border-bottom: 1px solid #eee;
}

.content-header h4 {
    margin: 0;
    color: #002B49;
    font-weight: 600;
    font-size: 1.2rem;
}

.content-body {
    padding: 1rem;
    background: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    :root {
        --nav-width: 0px;
    }

    .sidebar {
        left: -220px;
    }
    
    .content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .sidebar.show {
        left: 0;
        width: 220px;
    }
    
    .content.shift {
        margin-left: 220px;
    }
} 